package server;
import java.util.ArrayList;


public class Group {

	String place=new String();
	String leaderName=new String();
	int type;
	String groupName=new String();
	ArrayList<String> peopleList;
	
	public Group(String place, String leaderName, int type,String groupName){
		this.place =place;
		this.leaderName = leaderName;
		this.type = type;
		this.groupName = groupName;
		peopleList = new ArrayList<String>();
		peopleList.add(leaderName);
	}
	
	public String getGroupName(){
		return groupName;
	}
	
	public void setGroupName(String newGroupName){
		groupName = newGroupName;
	}
	
	public String getLeaderName(){
		return leaderName;
	}
	
	public void setLeaderName(String newLeaderName){
		leaderName = newLeaderName;
	}
	
	public int getType(){
		return type;
	}
	
	public void setType(int newType){
		type = newType;
	}
	
	public void add(String username){
		peopleList.add(username);
	}
	
	public int peopleNum(){
		return peopleList.size();
	}
}
